home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / pmlsrc23.zoo / pmlsrc / Makefile.16 < prev    next >
Encoding:
Makefile  |  1994-03-19  |  1.6 KB  |  79 lines

  1. #
  2. #  FILE
  3. #
  4. #    Makefile    build and install the pml library (16 bit ints)
  5. #
  6. #  SYNOPSIS
  7. #
  8. #    make funcs    make version of library in local directory
  9. #    make install    install the library (must be root)
  10. #
  11. #  WARNING
  12. #
  13. #    The order of the modules listed in the "LEVEL<n>" macros
  14. #    is significant since these are the orders in which
  15. #    they will be loaded into the library archive.  Although
  16. #    some machines support randomly ordered libraries, ordering
  17. #    them correctly doesn't hurt...
  18. CROSSDIR = /dsrg/bammi/cross-minix
  19. CROSSLIB = $(CROSSDIR)/lib
  20. CROSSBIN = $(CROSSDIR)/bin
  21. CROSSINC = $(CROSSDIR)/include
  22.  
  23. AR = /dsrg/bammi/cross-gcc/bin/car
  24. CC = $(CROSSBIN)/mgcc
  25. CFLAGS = -mshort -O2 -DIEEE -DNO_DBUG -D__GCC_HACK__ -I.
  26.  
  27. LIB = $(CROSSLIB)
  28.  
  29. INC = $(CROSSINC)
  30.  
  31.  
  32. LEVEL0 =    matherr.o ident.o
  33.  
  34. LEVEL1 =    sign.o mod.o poly.o dabs.o sqrt.o rint.o
  35.  
  36. LEVEL2 =    acos.o acosh.o asin.o asinh.o atan2.o atan.o \
  37.         log10.o tan.o \
  38.         tanh.o sinh.o cosh.o atanh.o \
  39.         log.o sin.o cos.o exp.o max.o min.o floor.o pow.o
  40.  
  41. LEVEL3 =    casin.o cacos.o cmult.o catan.o ccosh.o clog.o \
  42.         crcp.o csinh.o csqrt.o ctan.o ctanh.o cexp.o \
  43.         ccos.o csin.o cdiv.o csubt.o cabs.o
  44.  
  45. LEVEL4 =    cadd.o
  46.  
  47. OBJ =        $(LEVEL4) $(LEVEL3) $(LEVEL2) $(LEVEL1) $(LEVEL0)
  48.  
  49. #
  50. #    The default thing to make.
  51. #
  52.  
  53. default:    libpml.a
  54.  
  55. libpml.a:    $(OBJ)
  56.         rm -f libpml.a
  57.         $(AR) srv libpml.a $(OBJ)
  58.  
  59. $(OBJ) :    pml.h
  60.  
  61. #
  62. #    Stuff to do installation
  63. #
  64.  
  65. install :    $(LIB)/libpml.a $(INC)/pmluser.h
  66.  
  67. $(LIB)/libpml.a:    libpml.a
  68.             cp libpml.a $(LIB)/libpml.a
  69.  
  70. $(INC)/pmluser.h :    pmluser.h
  71.             cp pmluser.h $(INC)/pmluser.h
  72.  
  73. #
  74. #    Clean up the directory.
  75. #
  76.  
  77. clean:
  78.     rm -f *.o *.BAK libpml.a *.tmp *.bak nohup.out
  79.